<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="./libs/pagination.css">
</head>
<body>
    <div class="box pagination"></div>
</body>
<script src="../jquery.js"></script>
<script src="./libs/jquery.pagination.js"></script>
<script>

    $(".box").pagination(100, {
        items_per_page:3,
        num_display_entries: 5,
        num_edge_entries: 2,
        current_page: 7,
        ellipse_text: "---",
        prev_text: "《《《",
        // link_to: "https://www.baidu.com",
        prev_show_always: false,
        callback:(i)=>{
            console.log(i)
        }
    })

</script>
</html>